package com.probox.common.core.enums;

public enum SysRoleKey {
    admin("admin","超级管理员"),
    common("common","普通用户"),
    supplier("supplier","供应商"),
    store("store", "平台管理员");

    private SysRoleKey(String k, String v) {
        this.setKey(k);
        this.setValue(v);
    }

    public static String getNameByKey(String key) {
        String rst = "";
        for(DataStatus oe: DataStatus.values()) {
            if (oe.getKey().equals(key)) {
                rst = oe.getValue();
            }
        }
        return rst;
    }

    private String key;
    private String value;

    public String getKey() {
        return key;
    }
    public void setKey(String key) {
        this.key = key;
    }
    public String getValue() {
        return value;
    }
    public void setValue(String value) {
        this.value = value;
    }
}
